<template>
  <component :is="currentRole" />
</template>

<script>
import admin from "./admin";
import user from "./user";
import restaurant from "./restaurant";

export default {
  name: "Dashboard",
  components: { admin, user, restaurant },
  data() {
    return {
      currentRole: ""
    };
  },
  created() {
    this.currentRole = this.$store.getters.roles[0];
  }
};
</script>
